import request from "@/config/utils/request";
//结算冲销列表
export function listSettlementWritePage(data) {
  return request({
    url: "/apis/smp/settlementwrite/listSettlementWritePage",
    method: "post",
    data
  });
}
//新增结算冲销单-保存
export function saveSettlementWrite(data) {
  return request({
    url: "/apis/smp/settlementwrite/saveSettlementWrite",
    method: "post",
    data
  });
}
//新增结算冲销单-保存并提交
export function submitSettlementWrite(data) {
  return request({
    url: "/apis/smp/settlementwrite/submitSettlementWrite",
    method: "post",
    data
  });
}
//编辑结算冲销单
export function editSettlementWrite(data) {
  return request({
    url: "/apis/smp/settlementwrite/editSettlementWrite",
    method: "post",
    data
  });
}

//查看结算冲销单-基本信息
export function getSettlementWriteById(data) {
  return request({
    url: "/apis/smp/settlementwrite/getSettlementWriteById",
    method: "post",
    data
  });
}
//查看结算冲销单-附件列表
export function listScFilesPage(data) {
  return request({
    url: "/apis/smp/scfiles/listScFilesPage",
    method: "post",
    data
  });
}
//删除结算冲销单
export function removeSettlementWrite(data) {
  return request({
    url: "/apis/smp/settlementwrite/removeSettlementWrite",
    method: "post",
    data
  });
}
//删除结算冲销单
export function revokeSettlementWrite(data) {
  return request({
    url: "/apis/smp/settlementwrite/revokeSettlementWrite",
    method: "post",
    data
  });
}
//查询结算单列表-选择结算单编号的弹框
export function listSettlementPage(data) {
  return request({
    url: "/apis/smp/settlement/newWriteSettlementListPage",
    method: "post",
    data
  });
}
//查询结算单
export function getSettlementById(data) {
  return request({
    url: "/apis/smp/settlement/getSettlementById",
    method: "post",
    data
  });
}
